package com.webproject.service.impl.equipmentManager;

import com.webproject.core.Page;
import com.webproject.dao.equipmentManager.EquipmentManagerDao;
import com.webproject.entity.equipmentManager.Equipment;
import com.webproject.entity.equipmentManager.EquipmentCheckup;
import com.webproject.entity.equipmentManager.EquipmentType;
import com.webproject.service.equipmentManager.EquipmentManagerService;

public class EquipmentManagerServiceImpl implements EquipmentManagerService {

	private EquipmentManagerDao equipmentManagerDao;
	public EquipmentManagerDao getEquipmentManagerDao() {
		return equipmentManagerDao;
	}

	public void setEquipmentManagerDao(EquipmentManagerDao equipmentManagerDao) {
		this.equipmentManagerDao = equipmentManagerDao;
	}

	@Override
	public void queryEquipment(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(equipmentManagerDao.queryEquipment(page));
		page.setRecords(equipmentManagerDao.queryEquipmentCount(page));
	}

	@Override
	public void saveEquipment(Equipment equipment) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.saveEquipment(equipment);
	}

	@Override
	public void updateEquipment(Equipment equipment) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.updateEquipment(equipment);
	}

	@Override
	public void deleteEquipment(Equipment equipment) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.deleteEquipment(equipment);
	}

	@Override
	public void queryEquipmentCheckup(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(equipmentManagerDao.queryEquipmentCheckup(page));
		page.setRecords(equipmentManagerDao.queryEquipmentCheckupCount(page));
	}

	@Override
	public void saveEquipmentCheckup(EquipmentCheckup equipmentCheckup) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.saveEquipmentCheckup(equipmentCheckup);
	}

	@Override
	public void updateEquipmentCheckup(EquipmentCheckup equipmentCheckup) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.updateEquipmentCheckup(equipmentCheckup);
	}

	@Override
	public void deleteEquipmentCheckup(EquipmentCheckup equipmentCheckup) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.deleteEquipmentCheckup(equipmentCheckup);
	}

	@Override
	public void queryEquipmentType(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(equipmentManagerDao.queryEquipmentType(page));
		page.setRecords(equipmentManagerDao.queryEquipmentTypeCount(page));
	}

	@Override
	public void saveEquipmentType(EquipmentType type) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.saveEquipmentType(type);
	}

	@Override
	public void updateEquipmentType(EquipmentType type) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.updateEquipmentType(type);
	}

	@Override
	public void deleteEquipmentType(EquipmentType type) {
		// TODO Auto-generated constructor stub
		equipmentManagerDao.deleteEquipmentType(type);
	}

}
